<?php

namespace App\Admin;

use Illuminate\Database\Eloquent\Model;
use App\Libs\GetTableDataTrait;
//友情提示：新建的用于登录认证的模型类需要继承  Illuminate\Foundation\Auth\User 基类，不然后面就会出现不能认证的窘况
class Manager extends \Illuminate\Foundation\Auth\User
{
    protected $table = 'manager';
    public $timestamps = false;
    // protected $fillable = ['age'];//可以被批量赋值的属性 
    // protected $guarded = ['id','price'];//不能被批量赋值的属性

    public function role()
    {
        return $this->belongsTo('App\Admin\Role');
    }

}
